var events = require("events");
var EventEmitter = events.EventEmitter;

var eventEmitter = new EventEmitter();

eventEmitter.on("event1", function(event1_param1, event1_param2){
	console.log("event1 被触发. 这是event1的实现方法一");
	console.log("event1_param1 = " + event1_param1);
	console.log("event1_param2 = " + event1_param2);
});

eventEmitter.on("event1", function(event1_param1){
	console.log("event1 被触发. 这是event1的实现方法二");
	console.log("event1_param1 = " + event1_param1);
});


eventEmitter.emit("event1", "huang", "shangbin");